/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package Tech.yunjing.onlineStorage.controller;


import Tech.yunjing.onlineStorage.common.utils.BaseResult;
import org.springframework.web.bind.annotation.RestController;

/**
 * 控制器支持类
 * @author ThinkGem
 * @version 2013-3-23
 */
@RestController
public abstract class BaseController {

	private BaseResult baseResult;

	public BaseResult sendResult(int code,String message){
		return baseResult = new BaseResult(code,message);
	}

	public BaseResult sendResult(int code,String message,Object data){
		return baseResult = new BaseResult(code,message,data);
	}

	public BaseResult getBaseResult() {
		return baseResult;
	}

	public void setBaseResult(BaseResult baseResult) {
		this.baseResult = baseResult;
	}

}
